package Demo3;

public class Test {
    public static void main(String[] args)
            throws CloneNotSupportedException  {

        Person person1=new Person(10,"niuniu");
        Person person2=(Person) person1.clone();
        System.out.println(person1.age+" "+person1.name);
        System.out.println(person2.age+" "+person2.name);

    }
}
